<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			button{
				width: 100px;
				height:40px;
				border: none;
			}
			div{
				width: 400px;
				height: 200px;
				background-color: #fa9f0b;
				position: absolute;
				z-index: 100;
				display: none;
				line-height: 200px;
				text-align: center;
			}
		</style>
		<script src="js/jquery-1.11.1.js"></script>
	</head>
	<body>
		<button id="tab01" class="tab">tab01</button>
		<button id="tab02" class="tab">tab02</button>
		<button id="tab03" class="tab">tab03</button>
		<div class="d1"></div>
		<div class="d2"></div>
		<div class="d3"></div>
		<script>
			$("#tab01").click(function(){
				$("#tab01").css("background-color","#fa9f0b");
				$("#tab02").css("background-color","#f5f5f5");
				$("#tab03").css("background-color","#f5f5f5");
				$(".d1").text("tab文字内容一");
				$(".d1").css("display","block");
				$(".d2").css("display","none");
				$(".d3").css("display","none");
			});
			$("#tab02").click(function(){
				$("#tab02").css("background-color","#fa9f0b");
				$("#tab01").css("background-color","#f5f5f5");
				$("#tab03").css("background-color","#f5f5f5");
				$(".d2").text("tab文字内容二");
				$(".d1").css("display","none");
				$(".d2").css("display","block");
				$(".d3").css("display","none");
			});
			$("#tab03").click(function(){
				$("#tab03").css("background-color","#fa9f0b");
				$("#tab02").css("background-color","#f5f5f5");
				$("#tab01").css("background-color","#f5f5f5");
				$(".d3").text("tab文字内容三");
				$(".d1").css("display","none");
				$(".d2").css("display","none");
				$(".d3").css("display","block");
			});
			
		</script>
	</body>
</html>